The SimpleMenu Component > FSimpleMenu.setPadding() |
FSimpleMenu.setPadding()
Availability
Flash Player 6.
Usage
sm_instance.setPadding(padding)
Parameters
padding - An integer specifying the pixel distance between each
item on the SimpleMenu component.
Returns
Nothing.
Description
Adjusts the padding between each item on the SimpleMenu component.
Example
The following code sets the padding to an eighth of the button width:
sm.setPadding(sm.getButtonWidth()/8);
See also